package com.cqsxxy.controller;


import com.cqsxxy.pojo.User;
import com.cqsxxy.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

/**
 * <p>
 * 用户表 前端控制器
 * </p>
 *
 * @author rock
 * @since 2021-12-24
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    IUserService userService;

    @RequestMapping("/register")
    public HashMap<String,Object> register(User user){
        return userService.register(user);
    }

}

